/*body基础样式设定*/
body {
    max-width: 540px;
    min-width: 320px;
    margin: 0 auto;
    font: normal 14px/1.5 Tahoma, "Lucida Grande", Verdana, "Microsoft Yahei", STXihei, hei;
    color: #000;
    background: #f2f2f2;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

a {
    text-decoration: none;
    color: #222;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

div {
    box-sizing: border-box;
}

/*顶部固定定位搜索模块*/
.search-index {
    display: flex;
    /*固定定位以屏幕为准*/
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    /*固定的盒子必须设置高度*/
    width: 100%;
    max-width: 540px;
    min-width: 320px;
    height: 44px;
    background-color: #F6F6F6;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.user {
    width: 44px;
    height: 44px;
    font-size: 12px;
    text-align: center;
}

.user::before {
    content: '';
    display: block;
    width: 23px;
    height: 23px;
    background: url("images/sprite.png") no-repeat -59px -194px;
    background-size: 104px auto;
    margin: 4px auto -2px;
}

.search {
    position: relative;
    flex: 1;
    height: 26px;
    border: 1px solid #ccc;
    margin: 7px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);

    padding-left: 25px;
    font-size: 12px;
    color: #666;
    line-height: 24px;
}

.search::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 15px;
    height: 15px;
    background: url("images/sprite.png") no-repeat -59px -279px;
    background-size: 104px auto;
}

/* 焦点图模块 */
.focus {
    padding-top: 44px;
}

.focus img {
    width: 100%;
}

/*局部导航栏*/
.local-nav {
    display: flex;
    height: 64px;
    margin: 3px 4px;
    background-color: #fff;
    border-radius: 8px;
}

.local-nav li {
    flex: 1;
}

.local-nav li a {
    display: flex;
    /*主轴为Y轴方向*/
    flex-direction: column;
    /*侧轴居中对齐*/
    align-items: center;
    font-size: 12px;
}

.local-nav li [class^="local-nav-ico"] {
    width: 32px;
    height: 32px;
    margin-top: 8px;
    background: url("images/localnav_bg.png") no-repeat 0 0;
    background-size: 32px auto;
}

.local-nav li .local-nav-ico-icon2 {
    background-position: 0 -32px;
}

.local-nav li .local-nav-ico-icon3 {
    background-position: 0 -64px;
}

.local-nav li .local-nav-ico-icon4 {
    background-position: 0 -96px;
}

.local-nav li .local-nav-ico-icon5 {
    background-position: 0 -128px;
}

/*nav主导航栏*/
.nav {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 280px;
    border-radius: 8px;
    margin: 0 4px;
}

.nav .nav-top {
    flex: 1;
    display: flex;
    /*背景渐变颜色设置*/
    background: -webkit-linear-gradient(left, #EA5A55, #FA994D);
}

.nav .nav-center {
    margin: 3px 0;
    flex: 1;
    display: flex;
    background: -webkit-linear-gradient(left, #4B90ED, #53BCED);
}

.nav .nav-below {
    flex: 1;
    margin: 0 0 3px 0;
    display: flex;
    background: -webkit-linear-gradient(left, #34C2A9, #6CD559);
}

.nav .nav-items {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.nav .nav-items a {
    flex: 1;
    line-height: 40px;
    text-align: center;
    font-size: 14px;
    color: #fff;
    /*文字阴影*/
    text-shadow: 1px 1px rgba(0, 0, 0, .2);
}

/*选择前面两个元素*/
.nav .nav-items:nth-child(-n+2) {
    border-right: 1px solid #fff;
}

.nav .nav-items:nth-last-child(-n+2) a:nth-child(1) {
    border-bottom: 1px solid #fff;
}

.nav .nav-items:nth-child(1) a {
    background: url("images/hotel.png") no-repeat bottom center;
    background-size: 121px auto;
}

/*侧导航栏*/
.subnav-entry {
    display: flex;
    margin: 0 4px;
    background-color: #fff;
    border-radius: 8px;
    flex-wrap: wrap;
    padding: 5px 0;
}

.subnav-entry li {
    /*里面子盒子可以写百分比*/
    flex: 20%;
}

.subnav-entry a {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subnav-entry .subnav-entry-icon {
    width: 28px;
    height: 28px;
    margin-top: 4px;
    background: url("images/subnav-bg.png") no-repeat;
    background-size: 28px auto;
}

/*销售模块*/
.sales-box {
    margin: 4px;
    background-color: #fff;
    border-top: 1px solid #bbb;
}

.sales-box .sales-hd {
    position: relative;
    height: 44px;
    border-bottom: 1px solid #ccc;
}

.sales-box .sales-hd h2 {
    position: relative;
    text-indent: -999px;
    overflow: hidden;
}

.sales-box .sales-hd h2:after {
    position: absolute;
    top: 8px;
    left: 20px;
    content: "";
    width: 79px;
    height: 15px;
    background: url("images/hot.png") no-repeat 0 -20px;
    background-size: 79px auto;
}

.sales-box .sales-hd a {
    position: absolute;
    right: 5px;
    top: 0;
    background: -webkit-linear-gradient(left, #FF506C, #FF6BC6);
    border-radius: 15px;
    padding: 3px 20px 3px 10px;
    color: #fff;
}

.sales-box .sales-hd a:after {
    position: absolute;
    content: '';
    top: 9px;
    right: 9px;
    width: 7px;
    height: 7px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
}

.sales-box .sales-bc .row {
    display: flex;
}

.sales-box .sales-bc a {
    flex: 1;
    border-bottom: 1px solid #eee;
}

.sales-box .sales-bc a:nth-child(1) {
    border-right: 1px solid #eee;
}

.sales-box .sales-bc a img {
    width: 100%;
}